import java.util.Scanner;

public class IfElseAndSwitchCaseDemo {
    public static void main(String[] args) {
        //需求：从键盘输入1个星期的数字[1,7]，然后输出这个星期对应的单词
        Scanner input = new Scanner(System.in);

        System.out.print("请输入星期的数字[1,7]：");
        int week = input.nextInt();

        if(week == 1){
            System.out.println("Monday");
        }else if(week == 2){
            System.out.println("Tuesday");
        }else if(week == 3){
            System.out.println("Wednesday");
        }else if(week == 4){
            System.out.println("Thursday");
        }else if(week == 5){
            System.out.println("Friday");
        }else if(week == 6){
            System.out.println("Saturday");
        }else if(week == 7){
            System.out.println("Sunday");
        }else{
            System.out.println("输入有误！");
        }
    }
}
